package it.polito.connectedcar.general.network;

import java.net.SocketException;

/**
 * generic interface which represents a Factory for NetworkConnectors , in this
 * case Sockets see {@link ConnectedCarSocket} for more details about the Socket
 * used for network communication
 * 
 * @author Nicola Aresta
 * 
 */
public interface NetworkConnectorFactory {

	/**
	 * A cConnectedCarSocket used to send and receive messages to/from other
	 * entities
	 * 
	 * @return
	 * @throws SocketException
	 */
	public ConnectedCarSocket getSocket() throws SocketException;
}
